<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script>
			let str1 = 'x'.padStart(5,'ab');
			console.log(str1);//'ababx'
			
			let str2 = 'x'.padStart(4,'ab');
			console.log(str2);//'abax'
			
			let str3 = 'x'.padEnd(5,'ab');
			console.log(str3);//'xabab'
			
			let str4 = 'x'.padEnd(4,'ab')
			console.log(str4);//'xaba'
		</script>
	</body>
</html>
